#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main() {
    /*int a, b, c;
    int temp;
    while (scanf("%d %d %d", &a, &b ,&c) != EOF) {
        if(b>a){
            temp=a;
            a=b;
            b=temp;
        }
        if(c>b){
            temp=b;
            b=c;
            c=temp;
        }
        if(b>a){
            temp=a;
            a=b;
            b=temp;
        }
        }
        printf("%d\n", a);*/
    int arr[3] = { 0 };
    int i, j;
    int temp;
    scanf("%d %d %d ", &arr[0], &arr[1], &arr[2]);
    for (i = 0;i < 3;i++)
    {
        for (j = i + 1;j < 3;j++)
        {
            if (arr[j] > arr[i])
            {
                temp = arr[i];
                arr[i] = arr[j];
                arr[j] = temp;
            }
        }
    }
    printf("%d", arr[0]);
    return 0;
}